import { createApp } from "vue";
//pinna 引入
import { createPinia } from "pinia";

import App from "./App.vue";

//引入路由
import router from "./router";

//引入缓存技术插件
import persistedState from "pinia-plugin-persistedState";

//element plus
import ElementPlus from "element-plus";
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

//导入全局重置样式
import "./style/base.css";

//引入element 样式集合
import "element-plus/dist/index.css";

const app = createApp(App);

// 创建pinna实例
const pinia = createPinia();

// 使用缓存技术
pinia.use(persistedState)

//使用pinna实例
app.use(pinia)

app.use(router);

app.use(ElementPlus, {
    locale: zhCn,
  });
app.mount("#app");
